//
//  NetworkManager.h
//  QLadder
//
//  Created by xiongguobing on 2019/8/23.
//  Copyright © 2019 qding. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^getIPAndCitySuccess)(NSString * ip, NSString * currentCity);

NS_ASSUME_NONNULL_BEGIN

@interface NetworkManager : NSObject

@property (nonatomic, strong) NSString * ip;
@property (nonatomic, strong) NSString * port;
@property (nonatomic, strong) NSString * currentCity;
@property (nonatomic, copy) getIPAndCitySuccess successBlock;

+ (id)sharedManager;

- (void)getIPAndCity:(getIPAndCitySuccess _Nullable)successBlock;

@end

NS_ASSUME_NONNULL_END
